package com.aifast.system.sys.entity;

import com.aifast.common.base.BaseEntity;
import com.aifast.common.dict.DictBind;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典数据
 * </p>
 *
 * @author fujian
 * @since 2021-12-30
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dict_data")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SysDictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    private String name;

    /**
     * 代码
     */
    private String value;

    /**
     * 代码
     */
    private String type;

    /**
     * 类别id
     */
    private Integer pid;

    /**
     * 字典项数据的父级 一般用于多层级的字典项数据
     */
    private Integer dataPid;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    @DictBind(type = "state")
    private Integer state;

    /**
     * 备注
     */
    private String remarks;

    private Integer tenantId;


}
